package com.hrhx.springboot.mongodb;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;

import com.hrhx.springboot.domain.Cnarea;

public interface CnareaRepository extends MongoRepository<Cnarea, Integer> {
	List<Cnarea> findByLevel(Integer level);
	List<Cnarea> findByLevelAndParentId(Integer level,Integer id);
}
